<p style="margin: 5px 0pt;"><%=link_to  '测试管理' , :action=>"index"%>>>
<%=link_to  '创建复杂倾向测试' , :action=>"new"%> >> </p>
<div id="main">
 <div id="info">
<font color="blue"> 创建步骤：<font color="red">创建测试</font> >> 添加倾向 >>  添加章节 >> 添加章节对应倾向结果 >> 添加问题 >> 完成 </font>
 </div>
<% form_for(@test, :url => { :action => "new_test" } , :html=>{:class=>"required-validate" , :name=>"f1" }) do |f| %>
  <br/>
   <br/>  
   <%= tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, 
                 :value => form_authenticity_token) %> 
    名称：<input type="text"  name="test[name]" size="40" class="required" />
       <%=error_message_on :test, :name%> <br/><br/>
    标题：<input type="text" name="test[title]" size="40" class="required"  /> 
        <%=error_message_on :test , :title%> <br/><br/>
    倾向数目:<input type="text" id="trend"name="test[trend_num]" size="12"  class="required validate-integer">  <br/><br/>
    章节数目:<input type="text" id="part" name="test[part_num]" size="12" class="required validate-integer">  <br/><br/>
     <textarea cols="50" rows="5" id="description"name="test[description]"  
      style="width:150;border: 1px solid #CCCCCC;" class="required min-length-15 validation-failed"/>请输入该测试说明
      </textarea><%=error_message_on :test, :description%><br/><br />
    <input type="submit" value="下一步>>" class="cButton"  style="margin-left: 150px" /><br />
    <% end %>
 </div>
 
